package com.imooc.o2o.service;

import com.imooc.o2o.dto.PersonInfoExecution;
import com.imooc.o2o.entity.PersonInfo;

/**
 * Created by Knight on 2018/7/12.
 */
public interface PersonInfoService {

    /**
     *
     * @param userId
     * @return
     */
    PersonInfo getPersonInfoById(Long userId);

    /**
     *
     * @param personInfoCondition
     * @param pageIndex
     * @param pageSize
     * @return
     */
    PersonInfoExecution getPersonInfoList(PersonInfo personInfoCondition,
                                          int pageIndex, int pageSize);

    /**
     *
     * @param personInfo
     * @return
     */
    PersonInfoExecution addPersonInfo(PersonInfo personInfo);

    /**
     *
     * @param personInfo
     * @return
     */
    PersonInfoExecution modifyPersonInfo(PersonInfo personInfo);
}
